//
//  PPUnreadMessageManager.h
//  pickpic
//
//  Created by Jinxiao on 10/7/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "PPUnreadMessageSummaryObject.h"

@interface PPUnreadMessageManager : NSObject

+ (instancetype)sharedInstance;

- (void)fetchUnreadMessages;

@property (readwrite, nonatomic, strong) NSArray <PPUnreadMessageSummaryObject *> *summaries;

- (PPUnreadMessageSummaryObject *)summaryForType:(PPUnreadMessageSummaryType)type;

- (void)markSummariesAsReadForType:(PPUnreadMessageSummaryType)type;

@end

extern NSString * const PPUnreadMessageSummaryDidChangeNotification;
